<div class="layuimini-container">
    <div class="layui-card">
        <div class="layui-card-header">基本信息</div>
        <div class="layui-card-body">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">用户类型:</label>
                    <div class="layui-input-inline layui-input-wrap">
                        {if $row.user_type == 1}
                        <span class="layui-badge layui-bg-blue">普通用户</span>
                        {elseif $row.user_type == 2}
                        <span class="layui-badge layui-bg-green">帮扶者</span>
                        {else}
                        <span class="layui-badge">未知</span>
                        {/if}
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">微信openid:</label>
                    <div class="layui-input-inline">
                        <div class="layui-form-mid">{$row.openid|default=''}</div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">昵称:</label>
                    <div class="layui-input-inline layui-input-wrap">
                        {$row.nickname|default=''}
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">头像:</label>
                    <div class="layui-input-inline">
                        {if $row.avatar}
                        <div class="layui-form-mid">
                            <img src="{$row.avatar}" alt="头像" style="width: 64px; height: 64px; border-radius: 4px;">
                        </div>
                        {else}
                        <span>--</span>
                        {/if}
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">性别:</label>
                    <div class="layui-input-inline layui-input-wrap">
                        {if isset($sexStatus[$row.gender])}
                        {$sexStatus[$row.gender]}
                        {else}
                        未知
                        {/if}
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">手机号:</label>
                    <div class="layui-input-inline">
                        <div class="layui-form-mid">{$row.mobile|default='--'}</div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">状态:</label>
                    <div class="layui-input-inline layui-input-wrap">
                        {if $row.status == 1}
                        <span class="layui-badge layui-bg-blue">正常</span>
                        {else}
                        <span class="layui-badge">禁用</span>
                        {/if}
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">添加时间:</label>
                    <div class="layui-input-inline">
                        <div class="layui-form-mid">
                            {$row.create_time|default='--'}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    {if $row.helpInfo}
    <div class="layui-card">
        <div class="layui-card-header">帮扶者信息</div>
        <div class="layui-card-body">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">照片:</label>
                    <div class="layui-input-inline">
                        {if $row.helpInfo.photo}
                        <img src="{$row.helpInfo.photo}" alt="照片" style="width: 128px; height: 128px;"/>
                        {else}
                        <span>--</span>
                        {/if}
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">姓名:</label>
                    <div class="layui-input-inline">
                        <div class="layui-form-mid">{$row.helpInfo.real_name|default='--'}</div>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">手机号:</label>
                    <div class="layui-input-inline">
                        <div class="layui-form-mid">{$row.helpInfo.phone|default='--'}</div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">村名:</label>
                    <div class="layui-input-inline">
                        <div class="layui-form-mid">{$row.helpInfo.village_name|default='--'}</div>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">详细地址:</label>
                    <div class="layui-input-inline">
                        <div class="layui-form-mid">{$row.helpInfo.address|default='--'}</div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">意向说明:</label>
                    <div class="layui-input-inline">
                        {if $row.helpInfo.intention}
                        <div class="layui-form-mid">{$row.helpInfo.intention}</div>
                        {else}
                        <span>--</span>
                        {/if}
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">审批状态:</label>
                    <div class="layui-input-inline">
                        <div class="layui-form-mid">
                            {if $row.helpInfo.approve_status == 2}
                            <span class="layui-badge layui-bg-blue">通过</span>
                            {elseif $row.helpInfo.approve_status == 3}
                            <span class="layui-badge">拒绝</span>
                            {else}
                            <span class="layui-badge">待审核</span>
                            {/if}
                        </div>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">审批备注:</label>
                    <div class="layui-input-inline">
                        <div class="layui-form-mid">
                            {if $row.helpInfo.status_remark}
                            <div class="layui-form-mid">{$row.helpInfo.status_remark}</div>
                            {else}
                            <span>--</span>
                            {/if}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    {/if}
</div>